<template>
  <!-- html 结构 -->
  <div class="home">
    <h2>Home page</h2>
  </div>
</template>

<script lang="ts" setup name="">
import { onMounted } from "vue";
import { useRouter } from "vue-router";

const router = useRouter();

onMounted(() => {
  setTimeout(() => {
    router.push("/news");
  }, 3000);
});
</script>

<style>
/* 样式 */
</style>
